package ywpt.service.people;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.PeopleTrain;

public interface TrainService {

	public abstract PeopleTrain getTrainInfoById(Long id);

	public abstract void removeTrainInfo(Long id);

	public abstract void updateTrainInfo(PeopleTrain trainInfo,Long peopleId);

	public abstract void saveTtrainInfo(PeopleTrain trainInfo,Long peopleId);

	public abstract List<PeopleTrain> getTrainInfos(
			DetachedCriteria query, int pageSize, int i);

	public abstract int getTrainInfoCountByCriteria(DetachedCriteria query);

}
